package com.example.springboot01;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * @author cyd
 */
@SpringBootApplication
//@ImportResource(locations = {"classpath:config/beans.xml"})
public class Springboot01Application {

    //private static ConfigurableApplicationContext context;

    public static void main(String[] args) {

        SpringApplication.run(Springboot01Application.class, args);
        // context = SpringApplication.run(Springboot01Application.class, args);
        System.out.println("--------------项目启动了---------------");
        //ConfigurableEnvironment environment = context.getEnvironment();
        // String port = environment.getProperty("server.port");
        //System.out.println("http://localhost:" + port + "/helloController/hello");
    }

}
